package com.demo.common.controller;

import com.jfinal.core.Controller;
import com.jfinal.render.JspRender;

public class RendererrorController extends Controller {
	public void index(){
		render("index.jsp");
	}
	/**
	 * 404错误
	 */
	public void test1(){
		renderError(404);
	}
	/**
	 * 404错误
	 */
	public void test2(){
		renderError(404, "404error.html");
	}
	/**
	 * 404错误
	 */
	public void test3(){
		renderError(404, "/rendererror/404error.html");
	}
	/**
	 * 404错误
	 */
	public void test4(){
		renderError(404, "/WEB-INF/view/rendererror/404error.html");
	}
	/**
	 * 404错误
	 */
	public void test5(){
		renderError(404, new JspRender("404error.html"));
	}
	/**
	 * 404错误
	 */
	public void test6(){
		renderError(404, new JspRender("/WEB-INF/view/rendererror/404error.html"));
	}
	/**
	 * render 404
	 */
	public void test7(){
		render("404error.html",404);
	}
	/**
	 * render 404
	 */
	public void test8(){
		render("/WEB-INF/view/rendererror/404error.html",404);
	}
	/**
	 * render 400
	 */
	public void test9(){
		renderError(400);
	}
	/**
	 * render 401
	 */
	public void test10(){
		renderError(401);
	}
	/**
	 * render 400
	 */
	public void test11(){
		renderError(403);
	}
	/**
	 * render 500
	 */
	public void test12(){
		renderError(500);
	}
	
	
}
